package org.jeecg.modules.teacourse.service.impl;

import org.jeecg.modules.course.entity.AstuCourse;
import org.jeecg.modules.teacher.entity.AstuTeacher;
import org.jeecg.modules.teacher_course.entity.AstuTeacherCourse;
import org.jeecg.modules.teacourse.entity.AstuTeacourse;
import org.jeecg.modules.teacourse.mapper.AstuTeacourseMapper;
import org.jeecg.modules.teacourse.service.IAstuTeacourseService;
import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import javax.annotation.Resource;

/**
 * @Description: 教师查看自己的课程表
 * @Author: jeecg-boot
 * @Date:   2021-10-08
 * @Version: V1.0
 */
@Service
public class AstuTeacourseServiceImpl extends ServiceImpl<AstuTeacourseMapper, AstuTeacourse> implements IAstuTeacourseService {


    @Resource
    private AstuTeacourseMapper astuTeacourseMapper;

    @Override
    public AstuTeacher selectTeacherByTeacherNumber(String teacherNumber) {
        return astuTeacourseMapper.selectTeacherByTeacherNumber(teacherNumber);
    }

    @Override
    public AstuTeacherCourse selectTeacherIdByCourseId(String teacherId) {
        return astuTeacourseMapper.selectTeacherIdByCourseId(teacherId);
    }

    @Override
    public AstuCourse selectCourseIdByCourseName(String courseName) {
        return astuTeacourseMapper.selectCourseIdByCourseName(courseName);
    }
}
